package vectors;

public class LinkedListVectorFactory implements VectorFactory {

	@Override
	public Vector createVector() {
		return new LinkedListVector();
	}

	@Override
	public Vector createVector(int length) {
		LinkedListVector v = new LinkedListVector();
		for (int i = 0; i < length; i++) {
			v.addElement(0);
		}
		return v;
	}
}
